import theme from '@/common/theme'

//获取当前页面路由
export function getRoute() {
  const pages = getCurrentPages()
  const route = pages[pages.length - 1]
  return route.$page
}

//订单状态映射表
export const orderStatusMap = {
  0: '已取消',
  1: '待付款',
  2: '已完成',
}

//发布状态映射
export const momentTypeMap = {
  1: '求助',
  2: '供应',
}

//发布状态映射map
const {black, black2, red} = theme.color
export const momentStatusMap = {
  0: ['审核不通过', red],
  1: ['审核中', black2],
  2: ['审核通过', black],
}
